
import {HomeModel} from 'home-model.js';
var HomeM=new HomeModel();

Page({
  onLoad:function(){
    this._loadDate();
  },
  _loadDate:function(){
    var id = 1;
    this.getBannerById(id);
  },
  getBannerById(id) {
    HomeM.getBannerById(id, this.callBack);
  },
  callBack(res) {
    // console.log("d");
    console.log(res);
  }
})

